package com.ruoyi.net.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 网元设备对象 net_element
 * 
 * @author ruoyi
 * @date 2024-10-27
 */
public class NetElement extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 网元设备显示状态 0 掉线，灰色； 1 告警，红色； 2 正常，绿色
     */
    private String displayStatus;

    /**
     * id
     */
    private String id;

    /**
     * 网元名称
     */
    @Excel(name = "网元名称")
    private String elementName;

    /**
     * 网元类型
     */
    @Excel(name = "网元类型")
    private String elementType;

    /**
     * 子网掩码
     */
    @Excel(name = "子网掩码")
    private String mask;

    /**
     * 所属分组
     */
    @Excel(name = "所属分组")
    private String groupId;

    /**
     * 网元ip
     */
    @Excel(name = "网元ip")
    private String ip;

    /**
     * 访问端口
     */
    @Excel(name = "访问端口")
    private Integer port;

    /**
     * 访问用户名
     */
    @Excel(name = "访问用户名")
    private String userName;

    /**
     * 访问密码
     */
    @Excel(name = "访问密码")
    private String password;

    /**
     * 坐标x
     */
    @Excel(name = "坐标x")
    private Long x;

    /**
     * 坐标y
     */
    @Excel(name = "坐标y")
    private Long y;

    /**
     * 部门状态（0正常 1停用）
     */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;
    /**
     *  是否虚拟网元 默认 0，0-不是；1-是
     */
    private String isVisual;

    public String getIsVisual() {
        return isVisual; // 返回isVisual属性的值
    }

    public void setIsVisual(String isVisual) {
        this.isVisual = isVisual;
    }

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    @Excel(name = "设备序列号")
    /** 设备序列号 **/
    private String sn;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setElementName(String elementName) {
        this.elementName = elementName;
    }

    public String getElementName() {
        return elementName;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getIp() {
        return ip;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public Integer getPort() {
        return port;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setX(Long x) {
        this.x = x;
    }

    public Long getX() {
        return x;
    }

    public void setY(Long y) {
        this.y = y;
    }

    public Long getY() {
        return y;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public String getElementType() {
        return elementType;
    }

    public void setElementType(String elementType) {
        this.elementType = elementType;
    }

    public String getMask() {
        return mask;
    }

    public void setMask(String mask) {
        this.mask = mask;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getDisplayStatus() {
        return displayStatus;
    }

    public void setDisplayStatus(String displayStatus) {
        this.displayStatus = displayStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("displayStatus", getDisplayStatus())
                .append("id", getId())
                .append("elementName", getElementName())
                .append("ip", getIp())
                .append("port", getPort())
                .append("userName", getUserName())
                .append("password", getPassword())
                .append("mask", getMask())
                .append("elementType", getElementType())
                .append("groupId", getGroupId())
                .append("x", getX())
                .append("y", getY())
                .append("sn", getSn())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}